aux_source_directory(. DIR_LIB_SRCS)

#file(STRINGS "VERSION" LIB_VERSION)
#MESSAGE(STATUS "LIB_VERSION:" ${LIB_VERSION})

# note: by default this target creates a shared object (or dll). To build a
# static library instead, set the option BUILD_SHARED_LIBS to FALSE.
add_library(myapi SHARED ${DIR_LIB_SRCS})
add_library(myapi_static STATIC ${DIR_LIB_SRCS})

set_target_properties(myapi
    PROPERTIES
    VERSION ${VERSION}
    OUTPUT_NAME "myapi")
set_target_properties(myapi_static PROPERTIES OUTPUT_NAME "myapi")

include_directories(
	${CMAKE_SOURCE_DIR}/include
)

#target_link_libraries(myapi
#)

install(TARGETS myapi LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
